This project is a cross-platform keylogger written in C that works on Windows, Linux, and macOS. The keylogger captures keystrokes on each platform using appropriate system APIs and logs them into a file named keylog.txt.
I hope this post is useful for malware researchers, C/C++ programmers, spreads awareness to the blue teamers of this interesting classic keylogging technique, and adds a weapon to the red teamers arsenal.
We will write a keylogger in C for Windows. I will be using Linux for compiling and writing the program. The malicious program will capture our keystrokes and block our keys from reaching the...